package com.chixing.day12.Pointer;

import com.chixing.day12.Pointer.PointerDemo;

public class PointerTest {
    public static void main(String[] args){
        //菱形语法
       PointerDemo<Integer> p1 = new PointerDemo<Integer>();
       p1.setX(10);
       p1.setY(20);

        PointerDemo<Integer> p2 = new PointerDemo<Integer>(10,30);
        PointerDemo<Double> p3 = new PointerDemo<>();
        p3.setX(34.1);
        p3.setY(87.4);

        PointerDemo<String> pointer4 =  new PointerDemo<>("东经222度","北纬111度");


        fun(10,"xxx");


    }
    public static void fun(int a, String b){

    }
}
